package Test;

public class DiGui {
	
	public static long js(long val){
		long total=0;
	    if (val==1) {
			return 1;
		}
	    total=val+js(val-1);
		
		return  total;
	}
	
	
	public static void main(String[] args) {
		
		System.out.println(js(10));
	}
}
